home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / vol16n13.zip / OPENTR.ZIP / OT_SRC.ZIP / OTSTRUCT.H < prev    next >
C/C++ Source or Header  |  1997-05-26  |  2KB  |  56 lines

  1. // OTStruct.h
  2. // Structure declarations for OpenTrap.
  3. // OpenTrap Version 1.00 by Gregory A. Wolking
  4. // Copyright ⌐ 1997 Ziff-Davis Publishing
  5. // First published in PC Magazine, US Edition, July 1997.
  6. #include <sys\timeb.h>
  7. #pragma pack(1)
  8. struct trap_criteria
  9. {
  10.     DWORD          tc_func_num;    //function app wants trapped (-1 = all)
  11.     DWORD          tc_drive;       //drive (-1 = all drives)
  12.     DWORD          tc_proc_handle; //process (-1 if all processes)
  13.     DWORD          tc_vm_num;      //VMs (-1 if all) (0x0fffffffe if only DOS)
  14.     WORD           tc_status;      //error code (-1 if all status)
  15.     DWORD          tc_callback;    //address to call back
  16.     WORD           tc_misc;        //misc flags for OpenTrap
  17. };
  18.  
  19. struct trap_record
  20. {
  21.     DWORD           tr_function;   
  22.     DWORD           tr_drive;      
  23.     unsigned char   tr_ir_flags;   
  24.     WORD            tr_ir_options; 
  25.     DWORD           tr_res_type;   
  26.     DWORD           tr_handle;
  27.     char            tr_file1[MAX_PATH];
  28.     char            tr_file2[MAX_PATH];
  29.     char            tr_program[9];
  30.     DWORD           tr_vm;         
  31.     DWORD           tr_proc_handle;
  32.     WORD            tr_error;      
  33.     DWORD           tr_drv_context;
  34.     WORD            tr_drv_status;
  35.     WORD            tr_drv_miscflag;
  36. };
  37.  
  38. struct packed_record
  39. {
  40.     packed_record *    prev_record;
  41.     packed_record *    next_record;
  42.     DWORD           pr_function;
  43.     DWORD           pr_handle;
  44.     char *            pr_file1;        // ptr to first ASCIIZ string.
  45.     char            pr_program[9];
  46.     WORD            pr_error;
  47.     struct _timeb    pr_time;
  48. };
  49.  
  50. struct upcall
  51. {
  52.     DWORD           trap_rec_num;
  53.     DWORD           trap_dat_ptr;
  54.     WORD            trap_dat_len;
  55. };
  56.